// 写一个基于typeScript设计模式的适配器模式
interface Target {
    request(): void;
  }
  class Adaptee {
    specificRequest() {
      console.log("Adaptee request");
    }
  }
  class Adapter implements Target {
    constructor(private adaptee: Adaptee) {}
    request() {
      this.adaptee.specificRequest();
    }
  }
  const adaptee = new Adaptee();
  const target = new Adapter(adaptee);
  target.request();